﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;

namespace Camc.Quality.Bop.Dto
{
    public class SelectMoadifDto : PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 型号Id
        /// </summary>
        public Guid? ModelId { get; set; }
        /// <summary>
        /// 发次Id
        /// </summary>
        public Guid? LotNoId { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string Model { get; set; }


        /// <summary>
        /// 发次
        /// </summary>
        public string LotNo { get; set; }

        /// <summary>
        /// 4.图号
        /// </summary>
        public string DrawingNo { get; set; }

        /// <summary>
        /// 变更类型
        /// </summary>
        public string ModifyType { get; set; }

        /// <summary>
        /// 工艺规程名称
        /// </summary>
        public string TechniqueName { get; set; }
        /// <summary>
        /// 工艺规程编号
        /// </summary>
        public string TechniqueNumber { get; set; }


        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
